<!-- Star of Main -->
<div class="main mt10" >
    <!-- Star of area2s -->
    <div class="area2s">
    	<!-- Star of Col1 -->
    	<div class="col1">
			<div class="breadCrumb">
				<div class="fl"><span class="cRed fb">当前位置：</span> <a href="<?php echo CHtml::normalizeUrl(array('/')) ?>">首页</a>&nbsp;&rsaquo;&nbsp;<strong>个人中心</strong></div>
            </div>    
			<div class="member mt10">
				<?php $this->widget('ProfileLeftNav') ?>
				<div class="memberMain">
					<div class="memberMain-inner mer-allques">
						<div class="merber-title"><h2 class="cRed"><span class="mem-icon mem-editdata"></span>您在问吧提出的提问</h2><span class="title-intro"><?php if(!$qas) : ?>您还没有在问吧提出过提问，需要提问点击<a href="<?php echo CHtml::normalizeUrl(array('/qas', '#' => 'postQA')) ?>">这里</a>。<?php endif ?></span></div>
						<?php if($qas) : ?>
						<ul class="quesList" id="quesList">
						<?php foreach($qas as $qa) : ?>
							<li class="quesItem">
								<table cellpadding="0" cellspacing="0" border="0" width="100%">
									<tr>
										<td><span class="<?php if($qa->qaStatus == QAs::STATUS_UNSOLVED) : ?> cOrg<?php elseif($qa->qaStatus == QAs::STATUS_SOLVED): ?> cGre<?php endif; ?>">[<?php echo $qa->getStatusText(); ?>]</span></td>
										<td><a href="<?php echo CHtml::normalizeUrl(array('/qas/view', 'id' => $qa->qaId)); ?>"><?php $this->beginWidget('CHtmlPurifier'); ?><?php echo truncStr($qa->qaTitle, 48, '...'); ?><?php $this->endWidget('CHtmlPurifier'); ?></a></td>
										<td class="tr"><?php if($qa->qaStatus != QAs::STATUS_SOLVED) : $lastReply = $qa->getLastReply(); ?><?php if($lastReply !== null && $lastReply->author->getIsAdmin()) : ?>咨询师 <a href="<?php echo CHtml::normalizeUrl(array('/users/viewprofile', 'id' => $lastReply->author->uid)) ?>"><?php echo $lastReply->author->username ?></a> 回复于<span class="data"><?php echo fromNow($lastReply->qaDate); ?></span><?php else : ?>&nbsp;<?php endif ?><?php else: ?>&nbsp;<?php endif ?></td>
									</tr>
								</table>
							</li>
						<?php endforeach ?>
						</ul>
						<?php endif ?>
													<div class="cb"></div>
					</div>
				</div>
			</div>
        </div>
        <!-- End of Col1 -->
        <!-- Star of Col2 -->
        <div class="col2">
			<?php $this->widget('SearchBox') ?>
			<?php $this->widget('MustKnow') ?>
			<?php $this->widget('HotPosts') ?>
        </div>
        <!-- End of Col2 -->
    </div><!-- End of area3s -->
</div>
<!-- End of Main -->
<script type="text/javascript">
//1.jQuer表格换行变色及高亮显示。
	$(document).ready(function(){
		$("ul#quesList li.quesItem").mouseover(function(){
			$(this).addClass("over");}).mouseout(function(){
			$(this).removeClass("over");})
		$("ul#quesList li.quesItem:odd").addClass("alt");
	});
</script>
